/**
 * 2019年3月13日 上午10:26:16  
 * richest-api  
 * @author zhaohongchao
 * @version 1.0
 * GoodServiceImpl.java  
 */
package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.GoodMapper;
import com.richest.api.service.IGoodService;
import com.richest.bean.GoodBean;

/**
 * 2019年3月13日 上午10:26:16 richest-api
 * 
 * @author zhaohongchao
 * @version 1.0 GoodServiceImpl.java
 */
@Service
public class GoodServiceImpl implements IGoodService {
	@Autowired
	private GoodMapper goodMapper;

	@Override
	public GoodBean selectById(long lGoodId) {
		return goodMapper.selectById(lGoodId);
	}

	@Override
	public List<Map<String, Object>> selectCategoryGoodList(Map<String, Object> params) {
		return goodMapper.selectCategoryGoodList(params);
	}

	@Override
	public List<Map<String, Object>> getGoodListByShelve(Long admart_id, Integer shelve) {
		return goodMapper.getGoodListByShelve(admart_id, shelve);
	}

	@Override
	public void upperOrLowerShelf(GoodBean goodBean) {
		goodMapper.upperOrLowerShelf(goodBean);
	}

	@Override
	public void deleteGood(GoodBean goodBean) {
		goodMapper.deleteGood(goodBean);
	}

	@Override
	public void addGood(GoodBean goodBean) {
		goodMapper.addGood(goodBean);
	}

}
